<extend name="Index/index" />

<block name="main">
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="{:U('Index/index')}">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">分区列表</span></div>
        </div>
        <div class="search-wrap">
            <div class="search-content">
                <form action="{:U('part/list')}" method="GET">
                    <table class="search-tab">
                        <tr>
                            <th width="120">选择分类:</th>
                            <td>
                                <select name="search-sort" id="">
                                    <option value="uname">用户名</option>
                                    <option value="uemail" <?php if($_GET['search-sort'] == 'uemail'){echo 'selected';} ?> >邮箱</option>
                                </select>
                            </td>
                            <th width="70">关键字:</th>
                            <td><input class="common-text" placeholder="模糊查询" name="keywords" value="<?=$_GET['keywords']?>" id="" type="text">
                            </td>
                            <td><input class="btn btn-primary btn2" name="sub" value="查询" type="submit"></td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
        <div class="result-wrap">
            <form name="myform" id="myform" method="get">
                <div class="result-title">
                    <div class="result-list">
                        <a href="{:U('Part/create')}"><i class="icon-font"></i>新增分区</a>
                        <a id="batchDel" href="javascript:void(0)"><i class="icon-font"></i>批量删除</a>
                        <a id="updateOrd" href="javascript:void(0)"><i class="icon-font"></i>更新排序</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox"></th>
                            <th>分区ID</th>
                            <th>分区名称</th>
                            <th>操作</th>
                        </tr>
                        
                        <volist name="list" id="vo">
                        <tr>
                            <td class="tc"><input name="id[]" value="59" type="checkbox"></td>
                            <td>{$vo.pid}</td>
                            <td>{$vo.pname}</td>
                            <td>
                                <a class="link-update" href="{:U('Part/edit', ['pid' => $vo[pid]])}">修改</a>
                                <a class="link-update" href="{:U('Part/delete', ['pid' => $vo[pid]])}">删除</a>
                            </td>
                        </tr>
                        </volist>
                    </table>
                    <div class="list-page"><?=$page?></div>
                </div>
            </form>
        </div>
    </div>
    <!--/main-->
</block>